using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;

namespace MWang.Utility
{
    public class Crypto
    {
        public string md5(string plaintext)
        {
            byte[] bt = Encoding.UTF8.GetBytes(plaintext);
            MD5CryptoServiceProvider md5obj = new MD5CryptoServiceProvider();
            return BitConverter.ToString(md5obj.ComputeHash(bt));
        }
    }
}
